package com.llf.Mapper;

import com.llf.Pojo.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Map;
import java.util.List;

@Repository
public interface RoleMapper {
    //获取角色列表
    public List<Role> getRoleList();

    //增加角色信息
    public int addRole(Role role);

    //通过Id删除Role
    public int deleteRoleById(@Param("id") Integer Id);

    //修改角色信息
    public int updateRole(Role role);

    //通过Id获取role
    public Role getRoleById(@Param("id") Integer id);

    //根据roleCode，进行角色编码的唯一性验证(统计count)
    public int roleCodeIsExist(@Param("roleCode") String roleCode);



}
